package org.flint92.springboot.web.controller;

import org.flint92.springboot.web.model.User;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author flint92
 */
@RestController
public class XmlRestController {

    @GetMapping(value = "/xml/user", produces = MediaType.APPLICATION_XML_VALUE)
    public User user() {
        return new User("xml", 18);
    }
}
